<?php
	require_once ('message.php');

	class PINNAGO implements MessageInterface{
		public function send_message($mobile,$content){
			$url = 'http://61.145.229.29:9003/MWGate/wmgw.asmx/MongaTeCsSpSendSmsNew?';
			$param = array(
				'userId' => 'J02901',
				'password' => '659796',
				'pszMobis' => $mobile,
				'pszMsg' => $content,
				'iMobiCount' => 1,
				'pszSubPort' => '*'
			);
			$rurl = $url . http_build_query($param);
			$result = file_get_contents($rurl);
			return !($result < 0);
		}
	}
?>